
dnl Mandatory Autoconf Initialization Macro
dnl package_name, version_number, optional bug report email, tarball_name for tar.gz release files
AC_INIT(csv_parser_example, 1.0, israel.ekpo@israelekpo.com, csv_parser-dev)

dnl Defining the AX_EXPAND_PREFIX function
AC_DEFUN([AX_EXPAND_PREFIX],[dnl

  test "x$prefix" = xNONE && prefix=$ac_default_prefix
  
  test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
])

dnl Makes the value for prefix and exec_prefix available for substitution
AX_EXPAND_PREFIX

dnl Automake initialization. This method is obselete but needed for us to proceed.
AM_INIT_AUTOMAKE(csv_parser-example, 1.0)

dnl Ensures that a recent enough version of autoconf is being used
AC_PREREQ(2.61)

dnl Checking if the compiler supports C++.
AC_LANG(C++)

dnl Check for the C++ compiler.
AC_PROG_CXX

dnl Insert the copyright notice
AC_COPYRIGHT([Copyright (C) 2008 - 2009, Israel Ekpo, <israel.ekpo@israelekpo.com>])

dnl Save the settings into the Makefile.
AC_OUTPUT(Makefile)

AC_MSG_NOTICE([

Environment configuration has completed successfully.

You are now ready to run make and make install.

This will compile and generate the csv_parser_example binary

+------------------------------------------------------------------------+
| License:                                                               |
| This software is subject to the new BSD License, available in this     |
| distribution in the file LICENSE.  By continuing this installation     |
| process, you are bound by the terms of this license agreement.         |
| If you do not agree with the terms of this license, you must abort     |
| the installation process at this point.                                |
+------------------------------------------------------------------------+

Thank you for using csv_parser.

])

